package cn.tedu.jsd2210.csmall.product.mapper;

import cn.tedu.jsd2210.csmall.product.pojo.entity.Brand;
import cn.tedu.jsd2210.csmall.product.pojo.vo.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 *
 * @author Don
 * @version 0.0.1
 */
@Repository
public interface BrandMapper {

    int insert(Brand brand);


    int insertBatch(List<Brand> brands);


    int deleteById(Long id);


    int deleteByIds(Long[] ids);


    int update(Brand brand);

    int count();

    int countByName(String name);

    int countByNameAndNotId(@Param("id") Long id,@Param("name") String name);


    BrandStandardVO getStandardById(Long id);

    List<BrandListItemVO> list();



}
